package com.basker.pisces.excel.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.basker.pisces.excel.poi.POIWorkbookFactory;

@Configuration
@ConditionalOnClass(POIWorkbookFactory.class)
public class POIWorkbookFactoryConfiguration {

    @Bean
    public POIWorkbookFactory poiWorkbookFactory() {
        return new POIWorkbookFactory();
    }

}
